<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input data-rule="required" type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">背景图:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input data-rule="required" id="c-avatar" data-rule="" class="form-control" size="50" name="row[beijing_img]" type="text"   style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatar"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatar"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatar" style="width: 100%;"></ul>
        </div>
    </div>


    <div id="neirong">
        <div>
            <div class="form-group">
                <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
                <div class="col-xs-12 col-sm-4">
                    <input data-rule="required"    class="form-control" name="row[json][title][]" type="text" >
                </div>
                <label for="c-nickname" class="control-label col-xs-12 col-sm-1">{:__('内容')}:</label>
                <div class="col-xs-12 col-sm-4">
                    <input data-rule="required"    class="form-control" name="row[json][content][]" type="text" >
                </div>
                
            </div>
            <div class="form-group" style="border-bottom: 1px solid #eee;padding-bottom: 15px;">
                <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('x轴y轴')}:</label>
                <div class="col-xs-12 col-sm-2" >
                    <input data-rule="required"    class="form-control" name="row[json][zhou][]" type="text" >
                </div>
                <label for="c-nickname" class="control-label col-xs-12 col-sm-1">{:__('字体大小')}:</label>
                <div class="col-xs-12 col-sm-2" >
                    <input data-rule="required"    class="form-control" name="row[json][size][]" type="text" >
                </div>
                <label for="c-nickname" class="control-label col-xs-12 col-sm-1">{:__('颜色')}:</label>
                <div class="col-xs-12 col-sm-2" >
                    <input data-rule="required"    class="form-control" name="row[json][color][]" type="text" >
                </div>
            </div>
        </div>
        
        
    </div>
    <div class="form-group" style="text-align: right;">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-10"></label>
        <div class="col-xs-12 col-sm-2">
            <div style="    background: #0400ff;
            color: #fff;
            width: 100px;
            height: 35px;
            line-height: 35px;
            text-align: center;
            cursor: pointer;
            border-radius: 15px;" id="tj">添加一行</div>
        </div>
    </div>

    <div style="    background: #29292b;
    color: #fff;
    height: 35px;
            line-height: 35px;
              cursor: pointer;
              margin-left: 100px;
    width: 100px;
    text-align: center;
    border-radius: 15px;" id="yl">预览</div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">预览图:</label>
        <div class="col-xs-12 col-sm-8">
                <img  id="c-avatars" src="" alt="" >
                <input id="preview_img" type="hidden" name="row[preview_img]" >
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>
